package com.example.hcd.datamanage;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TaskTodoInfo 
{
	//任务的发起人
	private String userName;
	//任务的标题
	private String title;
	//任务的key
	private String key;
	//任务的定义名
	private String processDefinitionName;
	//任务的流程状态
	private String processStatus;
	//流程状态值
	private String processStatusValue;
	//流程ID
	private String proc_INST_ID_;
	//流程定义ID
	private String proc_DEF_ID_;
	//当前任务节点
	private String name_;
	//任务ID
	private String id_;
	//发起人用户ID
	private String user_ID_;
	//任务节点对应key
	private String task_DEF_KEY_;
	//任务处理人ID
	private String assignee_;
	//任务最近办理时间
	private long create_TIME_;
	
	//流程跟踪需要
	//评论
	private String content;
	//是否同意
	private String agree;
	//任务处理人姓名 如assignee_
	//人物处理人ID为user_ID_
	private String start_time;
	
	private String end_time;
	
	private String start_user_id;
	
	private String bussiness_key;
	
	private String delete_reason;
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getProcessDefinitionName() {
		return processDefinitionName;
	}
	public void setProcessDefinitionName(String processDefinitionName) {
		this.processDefinitionName = processDefinitionName;
	}
	public String getProcessStatus() {
		return processStatus;
	}
	public void setProcessStatus(String processStatus) {
		this.processStatus = processStatus;
	}
	public String getProcessStatusValue() {
		return processStatusValue;
	}
	public void setProcessStatusValue(String processStatusValue) {
		this.processStatusValue = processStatusValue;
	}
	public String getProc_INST_ID_() {
		return proc_INST_ID_;
	}
	public void setProc_INST_ID_(String proc_INST_ID_) {
		this.proc_INST_ID_ = proc_INST_ID_;
	}
	public String getProc_DEF_ID_() {
		return proc_DEF_ID_;
	}
	public void setProc_DEF_ID_(String proc_DEF_ID_) {
		this.proc_DEF_ID_ = proc_DEF_ID_;
	}
	public String getName_() {
		return name_;
	}
	public void setName_(String name_) {
		this.name_ = name_;
	}
	public String getId_() {
		return id_;
	}
	public void setId_(String id_) {
		this.id_ = id_;
	}
	public String getUser_ID_() {
		return user_ID_;
	}
	public void setUser_ID_(String user_ID_) {
		this.user_ID_ = user_ID_;
	}
	public String getTask_DEF_KEY_() {
		return task_DEF_KEY_;
	}
	public void setTask_DEF_KEY_(String task_DEF_KEY_) {
		this.task_DEF_KEY_ = task_DEF_KEY_;
	}
	public String getAssignee_() {
		return assignee_;
	}
	public void setAssignee_(String assignee_) {
		this.assignee_ = assignee_;
	}
	public String getCreate_TIME_() {
		SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		
		return mFormat.format(new Date(create_TIME_));
	}
	public void setCreate_TIME_(long create_TIME_) {
		this.create_TIME_ = create_TIME_;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getAgree() {
		return agree;
	}
	public void setAgree(String agree) {
		this.agree = agree;
	}
	public String getStart_time() {
		SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		
		return mFormat.format(new Date(Long.parseLong(start_time)));
	}
	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}
	public String getEnd_time() {
		
		if(end_time == null || end_time.equals(""))
		{
			return null;
		}
		
		SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		
		return mFormat.format(new Date(Long.parseLong(end_time)));
	}
	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}
	public String getStart_user_id() {
		return start_user_id;
	}
	public void setStart_user_id(String start_user_id) {
		this.start_user_id = start_user_id;
	}
	public String getBussiness_key() {
		return bussiness_key;
	}
	public void setBussiness_key(String bussiness_key) {
		this.bussiness_key = bussiness_key;
	}
	public String getDelete_reason() {
		return delete_reason;
	}
	public void setDelete_reason(String delete_reason) {
		this.delete_reason = delete_reason;
	}
	
	
	
}
